<!DOCTYPE html>
<html>
<head>
	<title></title>
</head>
<style type="text/css">
	*{margin:0;padding:0;}

</style>
<body>
<button type='button' onclick='myfunction()'>click here</button>
<p id='demo'></p>
</body>
<script type="text/javascript">
function myfunction(){
	var x;
	var txt="";
	var person={fullname:"bill",age:"15",pills:"none"};
	for(x in person){
		txt=txt+person[x];
	}
	document.getElementById('demo').innerHTML=txt;
}
</script>
</html>